package org.eclipsecon.dui.interpreter.internal;

import org.eclipse.emf.ecore.EObject;
import org.eclipsecon.dui.interpreter.IModelContext;

public class ModelContext implements IModelContext {

	private EObject rootModelElement;
	private BindingJob bindingJob;

	public void setModel(EObject rootModelElement) {
		this.rootModelElement = rootModelElement;
		
	}
	
	public EObject getModel() {
		return rootModelElement;
	}

	public void setBindingJob(BindingJob bindingJob) {
		this.bindingJob = bindingJob;
		
	}

	public void revertModel() {
		bindingJob.schedule();
	}

}
